﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000717 RID: 1815
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetJukeboxDataScRsp : IMessage<GetJukeboxDataScRsp>, IMessage, IEquatable<GetJukeboxDataScRsp>, IDeepCloneable<GetJukeboxDataScRsp>, IBufferMessage
	{
		// Token: 0x17001743 RID: 5955
		// (get) Token: 0x060051AC RID: 20908 RVA: 0x000DDCDB File Offset: 0x000DBEDB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetJukeboxDataScRsp> Parser
		{
			get
			{
				return GetJukeboxDataScRsp._parser;
			}
		}

		// Token: 0x17001744 RID: 5956
		// (get) Token: 0x060051AD RID: 20909 RVA: 0x000DDCE2 File Offset: 0x000DBEE2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetJukeboxDataScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001745 RID: 5957
		// (get) Token: 0x060051AE RID: 20910 RVA: 0x000DDCF4 File Offset: 0x000DBEF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetJukeboxDataScRsp.Descriptor;
			}
		}

		// Token: 0x060051AF RID: 20911 RVA: 0x000DDCFB File Offset: 0x000DBEFB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetJukeboxDataScRsp()
		{
		}

		// Token: 0x060051B0 RID: 20912 RVA: 0x000DDD10 File Offset: 0x000DBF10
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetJukeboxDataScRsp(GetJukeboxDataScRsp other) : this()
		{
			this.currentMusicId_ = other.currentMusicId_;
			this.retcode_ = other.retcode_;
			this.unlockedMusicList_ = other.unlockedMusicList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060051B1 RID: 20913 RVA: 0x000DDD5D File Offset: 0x000DBF5D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetJukeboxDataScRsp Clone()
		{
			return new GetJukeboxDataScRsp(this);
		}

		// Token: 0x17001746 RID: 5958
		// (get) Token: 0x060051B2 RID: 20914 RVA: 0x000DDD65 File Offset: 0x000DBF65
		// (set) Token: 0x060051B3 RID: 20915 RVA: 0x000DDD6D File Offset: 0x000DBF6D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CurrentMusicId
		{
			get
			{
				return this.currentMusicId_;
			}
			set
			{
				this.currentMusicId_ = value;
			}
		}

		// Token: 0x17001747 RID: 5959
		// (get) Token: 0x060051B4 RID: 20916 RVA: 0x000DDD76 File Offset: 0x000DBF76
		// (set) Token: 0x060051B5 RID: 20917 RVA: 0x000DDD7E File Offset: 0x000DBF7E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17001748 RID: 5960
		// (get) Token: 0x060051B6 RID: 20918 RVA: 0x000DDD87 File Offset: 0x000DBF87
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<MusicData> UnlockedMusicList
		{
			get
			{
				return this.unlockedMusicList_;
			}
		}

		// Token: 0x060051B7 RID: 20919 RVA: 0x000DDD8F File Offset: 0x000DBF8F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetJukeboxDataScRsp);
		}

		// Token: 0x060051B8 RID: 20920 RVA: 0x000DDDA0 File Offset: 0x000DBFA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetJukeboxDataScRsp other)
		{
			return other != null && (other == this || (this.CurrentMusicId == other.CurrentMusicId && this.Retcode == other.Retcode && this.unlockedMusicList_.Equals(other.unlockedMusicList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060051B9 RID: 20921 RVA: 0x000DDE00 File Offset: 0x000DC000
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.CurrentMusicId != 0U)
			{
				num ^= this.CurrentMusicId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			num ^= this.unlockedMusicList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060051BA RID: 20922 RVA: 0x000DDE66 File Offset: 0x000DC066
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060051BB RID: 20923 RVA: 0x000DDE6E File Offset: 0x000DC06E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060051BC RID: 20924 RVA: 0x000DDE78 File Offset: 0x000DC078
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Retcode);
			}
			if (this.CurrentMusicId != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.CurrentMusicId);
			}
			this.unlockedMusicList_.WriteTo(ref output, GetJukeboxDataScRsp._repeated_unlockedMusicList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060051BD RID: 20925 RVA: 0x000DDEE4 File Offset: 0x000DC0E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.CurrentMusicId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CurrentMusicId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			num += this.unlockedMusicList_.CalculateSize(GetJukeboxDataScRsp._repeated_unlockedMusicList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060051BE RID: 20926 RVA: 0x000DDF50 File Offset: 0x000DC150
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetJukeboxDataScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.CurrentMusicId != 0U)
			{
				this.CurrentMusicId = other.CurrentMusicId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this.unlockedMusicList_.Add(other.unlockedMusicList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060051BF RID: 20927 RVA: 0x000DDFB1 File Offset: 0x000DC1B1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060051C0 RID: 20928 RVA: 0x000DDFBC File Offset: 0x000DC1BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 40U)
					{
						if (num != 114U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.unlockedMusicList_.AddEntriesFrom(ref input, GetJukeboxDataScRsp._repeated_unlockedMusicList_codec);
						}
					}
					else
					{
						this.CurrentMusicId = input.ReadUInt32();
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400200A RID: 8202
		private static readonly MessageParser<GetJukeboxDataScRsp> _parser = new MessageParser<GetJukeboxDataScRsp>(() => new GetJukeboxDataScRsp());

		// Token: 0x0400200B RID: 8203
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400200C RID: 8204
		public const int CurrentMusicIdFieldNumber = 5;

		// Token: 0x0400200D RID: 8205
		private uint currentMusicId_;

		// Token: 0x0400200E RID: 8206
		public const int RetcodeFieldNumber = 2;

		// Token: 0x0400200F RID: 8207
		private uint retcode_;

		// Token: 0x04002010 RID: 8208
		public const int UnlockedMusicListFieldNumber = 14;

		// Token: 0x04002011 RID: 8209
		private static readonly FieldCodec<MusicData> _repeated_unlockedMusicList_codec = FieldCodec.ForMessage<MusicData>(114U, MusicData.Parser);

		// Token: 0x04002012 RID: 8210
		private readonly RepeatedField<MusicData> unlockedMusicList_ = new RepeatedField<MusicData>();
	}
}
